package com.moss.cloud.plugins.api.model.from;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

@Data
public class ModelDesignFrom implements Serializable {
    /**模型ID*/
    private Long id;
    /**模型名称*/
    @NotBlank(message = "模型名称不能为空")
    @Size(max = 64,message = "模型名称最大长度64位")
    private String modelName;
    /**模型注释*/
    @NotBlank(message = "模型注释不能为空")
    @Size(max = 100,message = "模型注释最大长度100位")
    private String modelComment;
    /**数据源ID*/
    @NotNull(message = "数据源ID不能为空")
    private Long dataSourceId;
    /**模型字段*/
    @NotNull(message = "模型字段不能为空")
    private List<ModelFieldFrom> modelFieldFroms;
}
